home *** CD-ROM | disk | FTP | other *** search
/ Champak 62 / Volume 62 - JOGO DISK .iso / Games / penguin_dinner.swf / scripts / __Packages / classes / ui / DayResultTip.as < prev    next >
Text File  |  2008-03-17  |  769b  |  23 lines

  1. class classes.ui.DayResultTip extends MovieClip
  2. {
  3.    var tipsText = ["How much I had to make today","How much I actually made today","Extra I make when I earn more than I need","Where all my profits go! Use this to buy upgrades","My total earnings since i began working"];
  4.    var currentIndex = null;
  5.    function DayResultTip()
  6.    {
  7.       super();
  8.       this._alpha = 0;
  9.    }
  10.    function show($tipIndex)
  11.    {
  12.       if(this.currentIndex == $tipIndex)
  13.       {
  14.          return undefined;
  15.       }
  16.       this.currentIndex = $tipIndex;
  17.       this.aTween.stop();
  18.       this._alpha = 0;
  19.       this.tip_tf.text = this.tipsText[$tipIndex];
  20.       this.aTween = new mx.transitions.Tween(this,"_alpha",mx.transitions.easing.None.easeIn,0,100,15,false);
  21.    }
  22. }
  23.